package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingLevelMapper {

    /**
     * 查询所有护理等级
     * @return
     */
    List<NursingLevelVo> getAllLeval();

    /**
     * 新增护理等级
     * @param nursingLevel
     */
    void addLevel(NursingLevel nursingLevel);

    /**
     * 条件分页查询
     * @param name
     * @param status
     * @return
     */
    Page<NursingPlanVo> getPage(String name, Integer status);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    NursingLevel getById(Long id);

    /**
     * 修改
     * @param nursingLevel
     */
    void updateLevel(NursingLevel nursingLevel);

    /**
     * 删除
     * @param id
     */
    void deleteById(Long id);

    /**
     * 启用禁用
     * @param id
     * @param status
     */
    void updateStatus(Long id, Integer status);
}
